package tech.aistar.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tech.aistar.entity.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 靳光乐
 * @since 2022-11-28
 */
@Mapper
public interface CustomerMapper extends BaseMapper<Customer> {
    @Select("SELECT * FROM customer WHERE cust_name = #{custName} AND cust_pwd = #{custPwd}")
    Customer getInfo(@Param("custName") String custName, @Param("custPwd") String custPwd);
}
